using System;
using InfoJetSoft.Service.XPath.Tokens;

//CID 0294 //2009.05.30 //Begin
namespace InfoJetSoft.Service.XPath
{
	/// <summary>
	/// Summary description for TokenChecker.
	/// </summary>
	class TokenChecker
	{
		public static bool containsDot( string xpath )
		{
			TokenReader reader = new TokenReader(xpath);
			foreach( Token token in reader.Tokens )
			{
				if( token.Type.Equals( TokenType.Symbol ) && token.Value.Equals( "." ) )
				{
					return true;
				}
			}
			return false;
		}
	}
}
//CID 0294 //2009.05.30 //End
